// miniprogram/pages/assess/content/index.js
var WxParse = require('../../wxParse/wxParse.js');
const nyyzbx = require("./nyyzbx.js");
const jegsmx = require("./jegsmx.js");
const sxbx = require("./sxbx.js");
const zcgs = require("./zcgs.js");
const bzwd = require("./bzwd.js");
Page({

  /**
   * 页面的初始数据
   */
  data: {
      title:'',
      item1:'',
      item2:'',
      item3:'',
      item4:'',
      item5:''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({
      title:options.title
    })
    var that = this;

    //使用内置HTML展现
    var data = {content1: nyyzbx.content,
                content2:jegsmx.content,
                content3:zcgs.content,
                content4:sxbx.content,
                content5:bzwd.content
                };
    this.setData({
        item1: data.content1,
        item2: data.content2,
        item3:data.content3,
        item4:data.content4,
        item5:data.content5
    }); 
    WxParse.wxParse('content1', 'html', data.content1, that, 25);
    WxParse.wxParse('content2', 'html', data.content2, that, 25);
    WxParse.wxParse('content3', 'html', data.content3, that, 25);
    WxParse.wxParse('content4', 'html', data.content4, that, 25);
    WxParse.wxParse('content5', 'html', data.content5, that, 25);
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})